using Refit;
using ZhaoXi.MSACommerce.CommonServiceClient;
using ZhaoXi.MSACommerce.CommonServiceClient.AspNetCore;
using ZhaoXi.MSACommerce.Consul.ServiceDiscovery;
using ZhaoXi.MSACommerce.UserService.HttpApi.Servcie;

namespace ZhaoXi.MSACommerce.UserService.HttpApi.Apis;

public class VerificationClient(
    IServiceDiscovery serviceDiscovery,
    ILoadBalancer<VerificationClient> loadBalancer,
    HttpClient httpClient)
    : ServiceClient(serviceDiscovery, loadBalancer, httpClient)
{
    public override string ServiceName { get; set; } = "Zhaoxi.MSACommerce.VerificationServer";
    public readonly IVerificationService UserServiceApi = RestService.For<IVerificationService>(httpClient);
}